package com.pioneer.web.sale.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pioneer.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * SalOrderBody 销售订单子表
 *
 * @author hlm
 * @date 2025-04-30 15:08:59
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sal_order_body")
@Data
public class SalOrderBody extends BaseEntity {

    /**
     * 销售订单子表ID
     */
    @TableId(type = IdType.AUTO)
    private Long orderBodyId;

    /**
     * 销售订单ID
     */
    private Long orderId;

    /**
     * 来源单据行ID
     */
    private Long sourceRowid;

    /**
     * 存货管理ID
     */
    private Long inventoryId;

    /**
     * 订单数量
     */
    private BigDecimal orderNumber;

    /**
     * 订单单价
     */
    private BigDecimal orderPrice;

    /**
     * 订单总价
     */
    private BigDecimal orderTotal;
}
